package com.xy.annotaion.handler.initializer;

import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.web.WebApplicationInitializer;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * spring管理的，但是只有spring web部署tomcat中启动，也许才会起作用。
 *
 * @author Dell
 */
public class TestWebApplicationInitializerImpl implements WebApplicationInitializer, LogService {
    @Override
//    @TestLog//not OK
    public void onStartup(ServletContext servletContext) throws ServletException {
        log(servletContext);
    }
}
